package com.fen.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fen.pojo.CompanyInfo;
import com.fen.vo.requset.RequestCompanyInfoOV;
import com.fen.vo.response.ResponseCompanyName;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;


/**
* @Description: companyinfo表的service层
* @Author: lijiafen
* @Date:  2021/11/1
* @Time: 17:35
* @eamil: 2368044269@qq.com
*/
@Service
public interface CompanyInfoServict extends IService<CompanyInfo> {


    boolean addCompanyInfo(RequestCompanyInfoOV requestCompanyInfoOV);


    IPage<CompanyInfo> listCompanyinfo(RequestCompanyInfoOV requestCompanyInfoOV);


    @Select("select id,company_name from company_info")
    /**
     * @Description: 查询所有受捐单位id和名字
     * @Author: lijiafen
     * @Date:  2021/11/3
     * @Time: 19:49
     * @eamil: 2368044269@qq.com
     */
    List<ResponseCompanyName> selectname();

}
